import { Controller, Get,Post,Body } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    return this.appService.getHello();
  }

  @Get('/a')
  getA(): string {
    return this.appService.getA();
  }
  
  //从form表单中上传文件到阿里云oss
  @Post('/upload')
  uploadFile(@Body() body) {
    return this.appService.uploadFile();
  }
 
}
